﻿<%@ Page Language="C#" %>

<% 
    int id = Int16.Parse(Request["id"]);
    DTO.KhuyenMaiDto km = BUS.KhuyenMaiBus.LayKhuyenMaiTheoID(id);
    Response.Write("<?xml version='1.0' encoding='utf-8'?>");
    Response.Write("<root>");
    
        Response.Write("<khuyenmai>");
        Response.Write("<id>" + km.ID + "</id>");
        Response.Write("<batdau><![CDATA[" + km.NgayBatDau + "]]></batdau>");
        Response.Write("<ketthuc><![CDATA[" + km.NgayKetThuc + "]]></ketthuc>");
        Response.Write("<hinhthuc>" + km.HinhThuc + "</hinhthuc>");
        Response.Write("</khuyenmai>");
   
    
    Response.Write("</root>");
%>
